From 996548fdac5a60f8fcc9363412a4a85c02f70e32 Mon Sep 17 00:00:00 2001 From: "kaf24@firebug.cl.cam.ac.uk" Date: Sat, 11 Mar 2006 10:44:48 +0100 Subject: [PATCH] Enable the ejection of the physical cdrom tray, when user enters "eject cdrom" in the control console of a VMX guest. Signed-Off-By: Nitin A Kamble --- tools/ioemu/monitor.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/ioemu/monitor.c b/tools/ioemu/monitor.c index f4c06fbf14..1effb6d962 100644 --- a/tools/ioemu/monitor.c +++ b/tools/ioemu/monitor.c @@ -407,6 +407,7 @@ static int eject_device(BlockDriverState *bs, int force) static void do_eject(int force, const char *filename) { + char cmd[1024]; BlockDriverState *bs; bs = bdrv_find(filename); @@ -415,6 +416,9 @@ static void do_eject(int force, const char *filename) return; } eject_device(bs, force); + sprintf(cmd, "eject %s", filename); + system(cmd); + } static void do_change(const char *device, const char *filename) -- 2.30.2